package cn.snowheart.template;

/**
 * @author liuwanxiang
 * @version 2019/07/08
 */
public class FileWriterTest {

    public static void main(String[] args) {

        Entity entity = new Entity(415, "Tom", "M");
        MyFileWriter writer = new JsonFileWriter();
        writer.write("D:\\file.json", entity);

        writer = new XmlFileWriter();
        writer.write("D:\\file.xml", entity);
    }

}
